export default{
    namespaced:true,
    state: {
        userInfo:{
            id:1001,
            studentId:109203124,
            name:"张三",
            age:20,
            subjects:[],
            type:"1"
        }
    },
    mutations: {
        // 添加课程
        addSubjects(state,payload){
            state.userInfo.subjects.push(...payload)
        }
    },
    actions: {
    },
}